<!DOCTYPE html>
<html>
<head>
    
    <title>测试项目</title>
    <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 20px;
            background-color: #f5f5f5;
        }
        .container {
            max-width: 1200px;
            margin: 0 auto;
            background-color: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
        }
        .summary-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        .card {
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .stats {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            margin-top: 15px;
        }
        .stat-item {
            text-align: center;
        }
        .stat-item .label {
            font-size: 0.9em;
            color: #666;
            margin-bottom: 5px;
        }
        .stat-item .value {
            font-size: 1.2em;
            font-weight: bold;
        }
        .stat-item .value.alert {
            color: #dc3545;
        }
        .stat-item .value .critical {
            color: #dc3545;
            margin-right: 10px;
        }
        .stat-item .value .warning {
            color: #ffc107;
        }

         
        table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 20px;
            table-layout: auto;
        }

        th, td {
            border: 1px solid #ddd;
            padding: 12px;
            text-align: left;
            min-width: 100px;
        }

         
        th:first-child, td:first-child {
            min-width: 150px;
        }

         
        th:last-child, td:last-child {
            min-width: 180px;
        }

         
        th:nth-last-child(2), td:nth-last-child(2) {
            min-width: 80px;
        }

         
        th:nth-last-child(3), td:nth-last-child(3) {
            min-width: 100px;
        }

        th {
            background-color: #4CAF50;
            color: white;
        }

         
        tr.warning { 
            background-color: #fff3cd !important;
        }
        tr.normal { 
            background-color: #d4edda !important;
        }
        tr.critical { 
            background-color: #f8d7da !important;
        }

        tr:nth-child(even) {
            background-color: #f9f9f9;
        }

        .label-value {
            display: inline-block;
            background-color: #e9ecef;
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 0.9em;
            word-break: break-all;
            white-space: normal;
        }

        h1, h2, h3 {
            color: #333;
        }
        .section {
            margin-bottom: 30px;
        }
        .chart-container {
            height: 400px;
            margin-bottom: 30px;
        }

         
        @media screen and (max-width: 1200px) {
            .container {
                padding: 10px;
            }
            
            table {
                display: block;
                overflow-x: auto;
                white-space: nowrap;
            }
            
            td, th {
                white-space: nowrap;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        
        <h1 style="text-align: center">测试项目</h1>
        <p>生成时间: 2024-12-31 20:18:38</p>

        
        <div class="summary-cards">
            
            <div class="card kubernetes集群监控状态">
                <h3>kubernetes集群监控状态</h3>
                <div class="stats">
                    <div class="stat-item">
                        <div class="label">最大值</div>
                        <div class="value">1.00</div>
                    </div>
                    <div class="stat-item">
                        <div class="label">最小值</div>
                        <div class="value">0.00</div>
                    </div>
                    
                    <div class="stat-item">
                        <div class="label">告警数</div>
                        <div class="value ">
                            0/13
                        </div>
                    </div>
                    <div class="stat-item">
                        <div class="label">告警详情</div>
                        <div class="value">
                            <span class="critical">严重:0</span>
                            <span class="warning">警告:0</span>
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="card 基础资源使用情况">
                <h3>基础资源使用情况</h3>
                <div class="stats">
                    <div class="stat-item">
                        <div class="label">最大值</div>
                        <div class="value">97.45</div>
                    </div>
                    <div class="stat-item">
                        <div class="label">最小值</div>
                        <div class="value">1.00</div>
                    </div>
                    
                    <div class="stat-item">
                        <div class="label">告警数</div>
                        <div class="value alert">
                            7/39
                        </div>
                    </div>
                    <div class="stat-item">
                        <div class="label">告警详情</div>
                        <div class="value">
                            <span class="critical">严重:6</span>
                            <span class="warning">警告:1</span>
                        </div>
                    </div>
                </div>
            </div>
            
        </div>

        
        <div class="section">
            <h2>资源使用概览</h2>
            <div class="chart-container">
                <canvas id="resourceChart"></canvas>
            </div>
        </div>

        
        
        <div class="section">
            <h2>kubernetes集群监控状态 监控指标</h2>
            
            <h3><li>K8s集群巡检</li></h3>
	    
             <p>未查询到数据</p>
            
            
            
            <h3><li>PVC使用率</li></h3>
	    
             <p>未查询到数据</p>
            
            
            
            <h3><li>Pod运行状态</li></h3>
	    
            
            <table>
                <tr>
                    <th>指标名称</th>
                    
                    
                        <th data-label-name="namespace">命名空间</th>
                    
                        <th data-label-name="pod">Pod名称</th>
                    
                    <th>值</th>
                    <th>状态</th>
                    <th>检测时间</th>
                </tr>
                
                <tr class="normal">
                    <td>Pod运行状态</td>
                    
                        
                        
                            
                                <td data-label-name="namespace">
                                    <span class="label-value">kube-system</span>
                                </td>
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                                <td data-label-name="pod">
                                    <span class="label-value">calico-kube-controllers-7b9cd6b965-qqd4g</span>
                                </td>
                            
                        
                    
                    <td>1.00</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="normal">
                    <td>Pod运行状态</td>
                    
                        
                        
                            
                                <td data-label-name="namespace">
                                    <span class="label-value">kube-system</span>
                                </td>
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                                <td data-label-name="pod">
                                    <span class="label-value">calico-node-8r8qn</span>
                                </td>
                            
                        
                    
                    <td>1.00</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="normal">
                    <td>Pod运行状态</td>
                    
                        
                        
                            
                                <td data-label-name="namespace">
                                    <span class="label-value">kube-system</span>
                                </td>
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                                <td data-label-name="pod">
                                    <span class="label-value">calico-node-ntkx2</span>
                                </td>
                            
                        
                    
                    <td>1.00</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="normal">
                    <td>Pod运行状态</td>
                    
                        
                        
                            
                                <td data-label-name="namespace">
                                    <span class="label-value">kube-system</span>
                                </td>
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                                <td data-label-name="pod">
                                    <span class="label-value">calico-node-xbnsd</span>
                                </td>
                            
                        
                    
                    <td>1.00</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="normal">
                    <td>Pod运行状态</td>
                    
                        
                        
                            
                                <td data-label-name="namespace">
                                    <span class="label-value">kube-system</span>
                                </td>
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                                <td data-label-name="pod">
                                    <span class="label-value">coredns-64c49c6db6-gr8qq</span>
                                </td>
                            
                        
                    
                    <td>1.00</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="normal">
                    <td>Pod运行状态</td>
                    
                        
                        
                            
                                <td data-label-name="namespace">
                                    <span class="label-value">kube-system</span>
                                </td>
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                                <td data-label-name="pod">
                                    <span class="label-value">local-path-provisioner-69df5cb69b-s4xc4</span>
                                </td>
                            
                        
                    
                    <td>1.00</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="normal">
                    <td>Pod运行状态</td>
                    
                        
                        
                            
                                <td data-label-name="namespace">
                                    <span class="label-value">kube-system</span>
                                </td>
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                                <td data-label-name="pod">
                                    <span class="label-value">metrics-server-55fd5fdf7f-z9t6w</span>
                                </td>
                            
                        
                    
                    <td>1.00</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
            </table>
            
            
            <h3><li>自定义监控脚本执行情况</li></h3>
	    
             <p>未查询到数据</p>
            
            
            
            <h3><li>节点就绪状态</li></h3>
	    
            
            <table>
                <tr>
                    <th>指标名称</th>
                    
                    
                    <th data-label-name="node">节点</th>

                    <th>ip</th>
                    
                    <th data-label-name="condition">状态类型</th>
                    
                    <th>值</th>
                    <th>状态</th>
                    <th>检测时间</th>
                </tr>
                
                <tr class="normal">
                    <td>节点就绪状态</td>
                    
                        
                        
                            
                                <td data-label-name="node">
                                    <span class="label-value">master-01</span>
                                </td>
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                                <td data-label-name="condition">
                                    <span class="label-value">Ready</span>
                                </td>
                            
                        
                    
                    <td>0.00</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="normal">
                    <td>节点就绪状态</td>
                    
                        
                        
                            
                                <td data-label-name="node">
                                    <span class="label-value">master-01</span>
                                </td>
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                                <td data-label-name="condition">
                                    <span class="label-value">Ready</span>
                                </td>
                            
                        
                    
                    <td>0.00</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="normal">
                    <td>节点就绪状态</td>
                    
                        
                        
                            
                                <td data-label-name="node">
                                    <span class="label-value">worker-01</span>
                                </td>
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                                <td data-label-name="condition">
                                    <span class="label-value">Ready</span>
                                </td>
                            
                        
                    
                    <td>0.00</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="normal">
                    <td>节点就绪状态</td>
                    
                        
                        
                            
                                <td data-label-name="node">
                                    <span class="label-value">worker-01</span>
                                </td>
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                                <td data-label-name="condition">
                                    <span class="label-value">Ready</span>
                                </td>
                            
                        
                    
                    <td>0.00</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="normal">
                    <td>节点就绪状态</td>
                    
                        
                        
                            
                        
                            
                                <td data-label-name="node">
                                    <span class="label-value">worker-02</span>
                                </td>
                            
                        
                    
                        
                        
                            
                                <td data-label-name="condition">
                                    <span class="label-value">Ready</span>
                                </td>
                            
                        
                            
                        
                    
                    <td>0.00</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="normal">
                    <td>节点就绪状态</td>
                    
                        
                        
                            
                                <td data-label-name="node">
                                    <span class="label-value">worker-02</span>
                                </td>
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                                <td data-label-name="condition">
                                    <span class="label-value">Ready</span>
                                </td>
                            
                        
                    
                    <td>0.00</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
            </table>
            
            
        </div>
        
        <div class="section">
            <h2>基础资源使用情况 监控指标</h2>
            
            <h3><li>CPU使用率</li></h3>
	    
            
            <table>
                <tr>
                    <th>指标名称</th>
                    
                    
                        <th data-label-name="instance">节点</th>
                    
                    <th>值</th>
                    <th>状态</th>
                    <th>检测时间</th>
                </tr>
                
                <tr class="normal">
                    <td>CPU使用率</td>
                    
                        
                        
                            
                                <td data-label-name="instance">
                                    <span class="label-value">10.0.10.200:9100</span>
                                </td>
                            
                        
                    
                    <td>2.40%</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="normal">
                    <td>CPU使用率</td>
                    
                        
                        
                            
                                <td data-label-name="instance">
                                    <span class="label-value">10.0.10.201:9100</span>
                                </td>
                            
                        
                    
                    <td>1.32%</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="normal">
                    <td>CPU使用率</td>
                    
                        
                        
                            
                                <td data-label-name="instance">
                                    <span class="label-value">10.0.10.202:9100</span>
                                </td>
                            
                        
                    
                    <td>2.23%</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
            </table>
            
            
            <h3><li>内存使用率</li></h3>
	    
            
            <table>
                <tr>
                    <th>指标名称</th>
                    
                    
                        <th data-label-name="instance">节点</th>
                    
                    <th>值</th>
                    <th>状态</th>
                    <th>检测时间</th>
                </tr>
                
                <tr class="normal">
                    <td>内存使用率</td>
                    
                        
                        
                            
                                <td data-label-name="instance">
                                    <span class="label-value">10.0.10.200:9100</span>
                                </td>
                            
                        
                    
                    <td>26.83%</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="normal">
                    <td>内存使用率</td>
                    
                        
                        
                            
                                <td data-label-name="instance">
                                    <span class="label-value">10.0.10.201:9100</span>
                                </td>
                            
                        
                    
                    <td>20.97%</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="warning">
                    <td>内存使用率</td>
                    
                        
                        
                            
                                <td data-label-name="instance">
                                    <span class="label-value">10.0.10.202:9100</span>
                                </td>
                            
                        
                    
                    <td>70.82%</td>
                    <td>
                        警告
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
            </table>
            
            
            <h3><li>固定机器内存使用率</li></h3>
	    
             <p>未查询到数据</p>
            
            
            
            <h3><li>磁盘使用率</li></h3>
	    
            
            <table>
                <tr>
                    <th>指标名称</th>
                    
                    
                        <th data-label-name="instance">节点</th>
                    
                        <th data-label-name="mountpoint">挂载点</th>
                    
                        <th data-label-name="device">磁盘</th>
                    
                        <th data-label-name="nodename">节点名称</th>
                    
                    <th>值</th>
                    <th>状态</th>
                    <th>检测时间</th>
                </tr>
                
                <tr class="critical">
                    <td>磁盘使用率</td>
                    
                        
                        
                            
                                <td data-label-name="instance">
                                    <span class="label-value">10.0.10.200:9100</span>
                                </td>
                            
                        
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                                <td data-label-name="mountpoint">
                                    <span class="label-value">/</span>
                                </td>
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                                <td data-label-name="device">
                                    <span class="label-value">/dev/mapper/centos-root</span>
                                </td>
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                        
                            
                                <td data-label-name="nodename">
                                    <span class="label-value">k8s-master</span>
                                </td>
                            
                        
                    
                    <td>97.45%</td>
                    <td>
                        严重
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="normal">
                    <td>磁盘使用率</td>
                    
                        
                        
                            
                                <td data-label-name="instance">
                                    <span class="label-value">10.0.10.201:9100</span>
                                </td>
                            
                        
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                                <td data-label-name="mountpoint">
                                    <span class="label-value">/</span>
                                </td>
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                                <td data-label-name="device">
                                    <span class="label-value">/dev/mapper/centos-root</span>
                                </td>
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                        
                            
                                <td data-label-name="nodename">
                                    <span class="label-value">k8s-node01</span>
                                </td>
                            
                        
                    
                    <td>63.36%</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="normal">
                    <td>磁盘使用率</td>
                    
                        
                        
                            
                        
                            
                                <td data-label-name="instance">
                                    <span class="label-value">10.0.10.201:9100</span>
                                </td>
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                                <td data-label-name="mountpoint">
                                    <span class="label-value">/data/kubernetes/kubelet/pods/c1481842-e95a-4cea-b8bb-d0411cd7f78f/volume-subpaths/nginx-conf/nginx/2</span>
                                </td>
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                        
                            
                                <td data-label-name="device">
                                    <span class="label-value">/dev/mapper/centos-root</span>
                                </td>
                            
                        
                    
                        
                        
                            
                                <td data-label-name="nodename">
                                    <span class="label-value">k8s-node01</span>
                                </td>
                            
                        
                            
                        
                            
                        
                            
                        
                    
                    <td>63.36%</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="critical">
                    <td>磁盘使用率</td>
                    
                        
                        
                            
                                <td data-label-name="instance">
                                    <span class="label-value">10.0.10.202:9100</span>
                                </td>
                            
                        
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                                <td data-label-name="mountpoint">
                                    <span class="label-value">/</span>
                                </td>
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                                <td data-label-name="device">
                                    <span class="label-value">/dev/mapper/centos-root</span>
                                </td>
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                        
                            
                                <td data-label-name="nodename">
                                    <span class="label-value">k8s-node02</span>
                                </td>
                            
                        
                    
                    <td>82.25%</td>
                    <td>
                        严重
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="critical">
                    <td>磁盘使用率</td>
                    
                        
                        
                            
                                <td data-label-name="instance">
                                    <span class="label-value">10.0.10.202:9100</span>
                                </td>
                            
                        
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                                <td data-label-name="mountpoint">
                                    <span class="label-value">/data/kubernetes/kubelet/pods/5b09e845-3aed-40d3-8807-97f62156e77e/volume-subpaths/config-volume/dolphinscheduler-healthcheck-container/0</span>
                                </td>
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                                <td data-label-name="device">
                                    <span class="label-value">/dev/mapper/centos-root</span>
                                </td>
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                        
                            
                                <td data-label-name="nodename">
                                    <span class="label-value">k8s-node02</span>
                                </td>
                            
                        
                    
                    <td>82.25%</td>
                    <td>
                        严重
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="critical">
                    <td>磁盘使用率</td>
                    
                        
                        
                            
                        
                            
                        
                            
                        
                            
                                <td data-label-name="instance">
                                    <span class="label-value">10.0.10.202:9100</span>
                                </td>
                            
                        
                    
                        
                        
                            
                                <td data-label-name="mountpoint">
                                    <span class="label-value">/data/kubernetes/kubelet/pods/df422ae5-e8b4-4d6f-be08-81dcc9fd517e/volume-subpaths/config/grafana/0</span>
                                </td>
                            
                        
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                                <td data-label-name="device">
                                    <span class="label-value">/dev/mapper/centos-root</span>
                                </td>
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                                <td data-label-name="nodename">
                                    <span class="label-value">k8s-node02</span>
                                </td>
                            
                        
                            
                        
                    
                    <td>82.25%</td>
                    <td>
                        严重
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="critical">
                    <td>磁盘使用率</td>
                    
                        
                        
                            
                                <td data-label-name="instance">
                                    <span class="label-value">10.0.10.200:9100</span>
                                </td>
                            
                        
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                                <td data-label-name="mountpoint">
                                    <span class="label-value">/</span>
                                </td>
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                                <td data-label-name="device">
                                    <span class="label-value">rootfs</span>
                                </td>
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                        
                            
                                <td data-label-name="nodename">
                                    <span class="label-value">k8s-master</span>
                                </td>
                            
                        
                    
                    <td>97.45%</td>
                    <td>
                        严重
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="normal">
                    <td>磁盘使用率</td>
                    
                        
                        
                            
                                <td data-label-name="instance">
                                    <span class="label-value">10.0.10.201:9100</span>
                                </td>
                            
                        
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                                <td data-label-name="mountpoint">
                                    <span class="label-value">/</span>
                                </td>
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                                <td data-label-name="device">
                                    <span class="label-value">rootfs</span>
                                </td>
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                        
                            
                                <td data-label-name="nodename">
                                    <span class="label-value">k8s-node01</span>
                                </td>
                            
                        
                    
                    <td>63.36%</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="critical">
                    <td>磁盘使用率</td>
                    
                        
                        
                            
                                <td data-label-name="instance">
                                    <span class="label-value">10.0.10.202:9100</span>
                                </td>
                            
                        
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                                <td data-label-name="mountpoint">
                                    <span class="label-value">/</span>
                                </td>
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                                <td data-label-name="device">
                                    <span class="label-value">rootfs</span>
                                </td>
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                        
                            
                                <td data-label-name="nodename">
                                    <span class="label-value">k8s-node02</span>
                                </td>
                            
                        
                    
                    <td>82.25%</td>
                    <td>
                        严重
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="normal">
                    <td>磁盘使用率</td>
                    
                        
                        
                            
                        
                            
                                <td data-label-name="instance">
                                    <span class="label-value">10.0.10.200:9100</span>
                                </td>
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                                <td data-label-name="mountpoint">
                                    <span class="label-value">/data/kubernetes/kubelet/pods/03916a43-d46b-48b6-9fab-ce07d0472e1a/volumes/kubernetes.io~projected/kube-api-access-zgbg7</span>
                                </td>
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                        
                            
                                <td data-label-name="device">
                                    <span class="label-value">tmpfs</span>
                                </td>
                            
                        
                    
                        
                        
                            
                                <td data-label-name="nodename">
                                    <span class="label-value">k8s-master</span>
                                </td>
                            
                        
                            
                        
                            
                        
                            
                        
                    
                    <td>1.00%</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="normal">
                    <td>磁盘使用率</td>
                    
                        
                        
                            
                        
                            
                        
                            
                        
                            
                                <td data-label-name="instance">
                                    <span class="label-value">10.0.10.200:9100</span>
                                </td>
                            
                        
                    
                        
                        
                            
                                <td data-label-name="mountpoint">
                                    <span class="label-value">/data/kubernetes/kubelet/pods/03916a43-d46b-48b6-9fab-ce07d0472e1a/volumes/kubernetes.io~secret/etcd-certs</span>
                                </td>
                            
                        
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                                <td data-label-name="device">
                                    <span class="label-value">tmpfs</span>
                                </td>
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                                <td data-label-name="nodename">
                                    <span class="label-value">k8s-master</span>
                                </td>
                            
                        
                            
                        
                    
                    <td>1.00%</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="normal">
                    <td>磁盘使用率</td>
                    
                        
                        
                            
                                <td data-label-name="instance">
                                    <span class="label-value">10.0.10.201:9100</span>
                                </td>
                            
                        
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                                <td data-label-name="mountpoint">
                                    <span class="label-value">/data/kubernetes/kubelet/pods/1660ba23-5170-4a36-bd47-ad3c174a0a63/volumes/kubernetes.io~projected/kube-api-access-rxsmw</span>
                                </td>
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                                <td data-label-name="device">
                                    <span class="label-value">tmpfs</span>
                                </td>
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                        
                            
                                <td data-label-name="nodename">
                                    <span class="label-value">k8s-node01</span>
                                </td>
                            
                        
                    
                    <td>1.00%</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="normal">
                    <td>磁盘使用率</td>
                    
                        
                        
                            
                                <td data-label-name="instance">
                                    <span class="label-value">10.0.10.201:9100</span>
                                </td>
                            
                        
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                                <td data-label-name="mountpoint">
                                    <span class="label-value">/data/kubernetes/kubelet/pods/1660ba23-5170-4a36-bd47-ad3c174a0a63/volumes/kubernetes.io~secret/etcd-certs</span>
                                </td>
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                                <td data-label-name="device">
                                    <span class="label-value">tmpfs</span>
                                </td>
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                        
                            
                                <td data-label-name="nodename">
                                    <span class="label-value">k8s-node01</span>
                                </td>
                            
                        
                    
                    <td>1.00%</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="normal">
                    <td>磁盘使用率</td>
                    
                        
                        
                            
                                <td data-label-name="instance">
                                    <span class="label-value">10.0.10.201:9100</span>
                                </td>
                            
                        
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                                <td data-label-name="mountpoint">
                                    <span class="label-value">/data/kubernetes/kubelet/pods/3b52e533-4eaf-49ba-adad-5756c55658b6/volumes/kubernetes.io~projected/kube-api-access-dst8r</span>
                                </td>
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                                <td data-label-name="device">
                                    <span class="label-value">tmpfs</span>
                                </td>
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                        
                            
                                <td data-label-name="nodename">
                                    <span class="label-value">k8s-node01</span>
                                </td>
                            
                        
                    
                    <td>1.01%</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="normal">
                    <td>磁盘使用率</td>
                    
                        
                        
                            
                                <td data-label-name="instance">
                                    <span class="label-value">10.0.10.201:9100</span>
                                </td>
                            
                        
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                                <td data-label-name="mountpoint">
                                    <span class="label-value">/data/kubernetes/kubelet/pods/6f021831-4a15-42eb-8d80-6ab401b79236/volumes/kubernetes.io~projected/kube-api-access-6vc5x</span>
                                </td>
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                                <td data-label-name="device">
                                    <span class="label-value">tmpfs</span>
                                </td>
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                        
                            
                                <td data-label-name="nodename">
                                    <span class="label-value">k8s-node01</span>
                                </td>
                            
                        
                    
                    <td>1.00%</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="normal">
                    <td>磁盘使用率</td>
                    
                        
                        
                            
                                <td data-label-name="instance">
                                    <span class="label-value">10.0.10.201:9100</span>
                                </td>
                            
                        
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                                <td data-label-name="mountpoint">
                                    <span class="label-value">/data/kubernetes/kubelet/pods/86c93c23-8c7c-44fa-8418-95e13211d20f/volumes/kubernetes.io~projected/kube-api-access-pk86n</span>
                                </td>
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                                <td data-label-name="device">
                                    <span class="label-value">tmpfs</span>
                                </td>
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                        
                            
                                <td data-label-name="nodename">
                                    <span class="label-value">k8s-node01</span>
                                </td>
                            
                        
                    
                    <td>1.00%</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="normal">
                    <td>磁盘使用率</td>
                    
                        
                        
                            
                                <td data-label-name="instance">
                                    <span class="label-value">10.0.10.201:9100</span>
                                </td>
                            
                        
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                                <td data-label-name="mountpoint">
                                    <span class="label-value">/data/kubernetes/kubelet/pods/86c93c23-8c7c-44fa-8418-95e13211d20f/volumes/kubernetes.io~secret/config</span>
                                </td>
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                                <td data-label-name="device">
                                    <span class="label-value">tmpfs</span>
                                </td>
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                        
                            
                                <td data-label-name="nodename">
                                    <span class="label-value">k8s-node01</span>
                                </td>
                            
                        
                    
                    <td>1.00%</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="normal">
                    <td>磁盘使用率</td>
                    
                        
                        
                            
                        
                            
                        
                            
                        
                            
                                <td data-label-name="instance">
                                    <span class="label-value">10.0.10.201:9100</span>
                                </td>
                            
                        
                    
                        
                        
                            
                                <td data-label-name="mountpoint">
                                    <span class="label-value">/data/kubernetes/kubelet/pods/c1481842-e95a-4cea-b8bb-d0411cd7f78f/volumes/kubernetes.io~projected/kube-api-access-6z5fj</span>
                                </td>
                            
                        
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                                <td data-label-name="device">
                                    <span class="label-value">tmpfs</span>
                                </td>
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                                <td data-label-name="nodename">
                                    <span class="label-value">k8s-node01</span>
                                </td>
                            
                        
                            
                        
                    
                    <td>1.00%</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="normal">
                    <td>磁盘使用率</td>
                    
                        
                        
                            
                                <td data-label-name="instance">
                                    <span class="label-value">10.0.10.201:9100</span>
                                </td>
                            
                        
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                                <td data-label-name="mountpoint">
                                    <span class="label-value">/data/kubernetes/kubelet/pods/c1481842-e95a-4cea-b8bb-d0411cd7f78f/volumes/kubernetes.io~secret/minio-tls</span>
                                </td>
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                                <td data-label-name="device">
                                    <span class="label-value">tmpfs</span>
                                </td>
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                        
                            
                                <td data-label-name="nodename">
                                    <span class="label-value">k8s-node01</span>
                                </td>
                            
                        
                    
                    <td>1.00%</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="normal">
                    <td>磁盘使用率</td>
                    
                        
                        
                            
                        
                            
                        
                            
                        
                            
                                <td data-label-name="instance">
                                    <span class="label-value">10.0.10.201:9100</span>
                                </td>
                            
                        
                    
                        
                        
                            
                                <td data-label-name="mountpoint">
                                    <span class="label-value">/data/kubernetes/kubelet/pods/caecb7c5-8313-44ef-a975-7511475a9b8d/volumes/kubernetes.io~projected/kube-api-access-fz8fh</span>
                                </td>
                            
                        
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                                <td data-label-name="device">
                                    <span class="label-value">tmpfs</span>
                                </td>
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                                <td data-label-name="nodename">
                                    <span class="label-value">k8s-node01</span>
                                </td>
                            
                        
                            
                        
                    
                    <td>1.00%</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="normal">
                    <td>磁盘使用率</td>
                    
                        
                        
                            
                                <td data-label-name="instance">
                                    <span class="label-value">10.0.10.201:9100</span>
                                </td>
                            
                        
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                                <td data-label-name="mountpoint">
                                    <span class="label-value">/data/kubernetes/kubelet/pods/caecb7c5-8313-44ef-a975-7511475a9b8d/volumes/kubernetes.io~secret/config</span>
                                </td>
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                                <td data-label-name="device">
                                    <span class="label-value">tmpfs</span>
                                </td>
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                        
                            
                                <td data-label-name="nodename">
                                    <span class="label-value">k8s-node01</span>
                                </td>
                            
                        
                    
                    <td>1.00%</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="normal">
                    <td>磁盘使用率</td>
                    
                        
                        
                            
                        
                            
                        
                            
                        
                            
                                <td data-label-name="instance">
                                    <span class="label-value">10.0.10.201:9100</span>
                                </td>
                            
                        
                    
                        
                        
                            
                                <td data-label-name="mountpoint">
                                    <span class="label-value">/data/kubernetes/kubelet/pods/d984a2aa-7cc7-4ebe-aa2e-90951a1cf6ce/volumes/kubernetes.io~projected/kube-api-access-xbznk</span>
                                </td>
                            
                        
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                                <td data-label-name="device">
                                    <span class="label-value">tmpfs</span>
                                </td>
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                                <td data-label-name="nodename">
                                    <span class="label-value">k8s-node01</span>
                                </td>
                            
                        
                            
                        
                    
                    <td>1.00%</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="normal">
                    <td>磁盘使用率</td>
                    
                        
                        
                            
                                <td data-label-name="instance">
                                    <span class="label-value">10.0.10.202:9100</span>
                                </td>
                            
                        
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                                <td data-label-name="mountpoint">
                                    <span class="label-value">/data/kubernetes/kubelet/pods/5b09e845-3aed-40d3-8807-97f62156e77e/volumes/kubernetes.io~projected/kube-api-access-9sttk</span>
                                </td>
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                                <td data-label-name="device">
                                    <span class="label-value">tmpfs</span>
                                </td>
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                        
                            
                                <td data-label-name="nodename">
                                    <span class="label-value">k8s-node02</span>
                                </td>
                            
                        
                    
                    <td>1.01%</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="normal">
                    <td>磁盘使用率</td>
                    
                        
                        
                            
                        
                            
                        
                            
                        
                            
                                <td data-label-name="instance">
                                    <span class="label-value">10.0.10.202:9100</span>
                                </td>
                            
                        
                    
                        
                        
                            
                                <td data-label-name="mountpoint">
                                    <span class="label-value">/data/kubernetes/kubelet/pods/81b5195a-3123-40e5-8bab-c04499359119/volumes/kubernetes.io~projected/kube-api-access-kvzvx</span>
                                </td>
                            
                        
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                                <td data-label-name="device">
                                    <span class="label-value">tmpfs</span>
                                </td>
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                                <td data-label-name="nodename">
                                    <span class="label-value">k8s-node02</span>
                                </td>
                            
                        
                            
                        
                    
                    <td>1.00%</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="normal">
                    <td>磁盘使用率</td>
                    
                        
                        
                            
                        
                            
                                <td data-label-name="instance">
                                    <span class="label-value">10.0.10.202:9100</span>
                                </td>
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                                <td data-label-name="mountpoint">
                                    <span class="label-value">/data/kubernetes/kubelet/pods/9716e25d-67da-4465-8fcc-2ff9f04daae2/volumes/kubernetes.io~projected/kube-api-access-xv5bb</span>
                                </td>
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                        
                            
                                <td data-label-name="device">
                                    <span class="label-value">tmpfs</span>
                                </td>
                            
                        
                    
                        
                        
                            
                                <td data-label-name="nodename">
                                    <span class="label-value">k8s-node02</span>
                                </td>
                            
                        
                            
                        
                            
                        
                            
                        
                    
                    <td>1.00%</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="normal">
                    <td>磁盘使用率</td>
                    
                        
                        
                            
                        
                            
                                <td data-label-name="instance">
                                    <span class="label-value">10.0.10.202:9100</span>
                                </td>
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                                <td data-label-name="mountpoint">
                                    <span class="label-value">/data/kubernetes/kubelet/pods/9716e25d-67da-4465-8fcc-2ff9f04daae2/volumes/kubernetes.io~secret/etcd-certs</span>
                                </td>
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                        
                            
                                <td data-label-name="device">
                                    <span class="label-value">tmpfs</span>
                                </td>
                            
                        
                    
                        
                        
                            
                                <td data-label-name="nodename">
                                    <span class="label-value">k8s-node02</span>
                                </td>
                            
                        
                            
                        
                            
                        
                            
                        
                    
                    <td>1.00%</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="normal">
                    <td>磁盘使用率</td>
                    
                        
                        
                            
                                <td data-label-name="instance">
                                    <span class="label-value">10.0.10.202:9100</span>
                                </td>
                            
                        
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                                <td data-label-name="mountpoint">
                                    <span class="label-value">/data/kubernetes/kubelet/pods/a5a3692c-23bc-42fe-9107-41e12f1458c1/volumes/kubernetes.io~projected/kube-api-access-fg85g</span>
                                </td>
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                                <td data-label-name="device">
                                    <span class="label-value">tmpfs</span>
                                </td>
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                        
                            
                                <td data-label-name="nodename">
                                    <span class="label-value">k8s-node02</span>
                                </td>
                            
                        
                    
                    <td>1.00%</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="normal">
                    <td>磁盘使用率</td>
                    
                        
                        
                            
                                <td data-label-name="instance">
                                    <span class="label-value">10.0.10.202:9100</span>
                                </td>
                            
                        
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                                <td data-label-name="mountpoint">
                                    <span class="label-value">/data/kubernetes/kubelet/pods/bfad8bcc-49fd-40b1-ac8e-aa83ab20bb7a/volumes/kubernetes.io~projected/kube-api-access-kt8j2</span>
                                </td>
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                                <td data-label-name="device">
                                    <span class="label-value">tmpfs</span>
                                </td>
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                        
                            
                                <td data-label-name="nodename">
                                    <span class="label-value">k8s-node02</span>
                                </td>
                            
                        
                    
                    <td>1.00%</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="normal">
                    <td>磁盘使用率</td>
                    
                        
                        
                            
                        
                            
                        
                            
                        
                            
                                <td data-label-name="instance">
                                    <span class="label-value">10.0.10.202:9100</span>
                                </td>
                            
                        
                    
                        
                        
                            
                                <td data-label-name="mountpoint">
                                    <span class="label-value">/data/kubernetes/kubelet/pods/bfad8bcc-49fd-40b1-ac8e-aa83ab20bb7a/volumes/kubernetes.io~secret/config</span>
                                </td>
                            
                        
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                                <td data-label-name="device">
                                    <span class="label-value">tmpfs</span>
                                </td>
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                                <td data-label-name="nodename">
                                    <span class="label-value">k8s-node02</span>
                                </td>
                            
                        
                            
                        
                    
                    <td>1.00%</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="normal">
                    <td>磁盘使用率</td>
                    
                        
                        
                            
                                <td data-label-name="instance">
                                    <span class="label-value">10.0.10.202:9100</span>
                                </td>
                            
                        
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                                <td data-label-name="mountpoint">
                                    <span class="label-value">/data/kubernetes/kubelet/pods/df422ae5-e8b4-4d6f-be08-81dcc9fd517e/volumes/kubernetes.io~projected/kube-api-access-9tjpn</span>
                                </td>
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                                <td data-label-name="device">
                                    <span class="label-value">tmpfs</span>
                                </td>
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                        
                            
                                <td data-label-name="nodename">
                                    <span class="label-value">k8s-node02</span>
                                </td>
                            
                        
                    
                    <td>1.00%</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="normal">
                    <td>磁盘使用率</td>
                    
                        
                        
                            
                        
                            
                                <td data-label-name="instance">
                                    <span class="label-value">10.0.10.202:9100</span>
                                </td>
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                                <td data-label-name="mountpoint">
                                    <span class="label-value">/data/kubernetes/kubelet/pods/ec2c103c-dcab-4a14-8ede-d7adaca798ea/volumes/kubernetes.io~projected/kube-api-access-p6vc2</span>
                                </td>
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                        
                            
                                <td data-label-name="device">
                                    <span class="label-value">tmpfs</span>
                                </td>
                            
                        
                    
                        
                        
                            
                                <td data-label-name="nodename">
                                    <span class="label-value">k8s-node02</span>
                                </td>
                            
                        
                            
                        
                            
                        
                            
                        
                    
                    <td>1.00%</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="normal">
                    <td>磁盘使用率</td>
                    
                        
                        
                            
                        
                            
                        
                            
                                <td data-label-name="instance">
                                    <span class="label-value">10.0.10.202:9100</span>
                                </td>
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                        
                            
                                <td data-label-name="mountpoint">
                                    <span class="label-value">/data/kubernetes/kubelet/pods/ec2c103c-dcab-4a14-8ede-d7adaca798ea/volumes/kubernetes.io~secret/etcd-certs</span>
                                </td>
                            
                        
                    
                        
                        
                            
                                <td data-label-name="device">
                                    <span class="label-value">tmpfs</span>
                                </td>
                            
                        
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                                <td data-label-name="nodename">
                                    <span class="label-value">k8s-node02</span>
                                </td>
                            
                        
                            
                        
                            
                        
                    
                    <td>1.00%</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
                <tr class="normal">
                    <td>磁盘使用率</td>
                    
                        
                        
                            
                        
                            
                        
                            
                                <td data-label-name="instance">
                                    <span class="label-value">10.0.10.202:9100</span>
                                </td>
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                        
                            
                        
                            
                                <td data-label-name="mountpoint">
                                    <span class="label-value">/data/kubernetes/kubelet/pods/f98c6320-f73d-4829-a4f6-0eaeaadb5f9b/volumes/kubernetes.io~projected/kube-api-access-8xlh2</span>
                                </td>
                            
                        
                    
                        
                        
                            
                                <td data-label-name="device">
                                    <span class="label-value">tmpfs</span>
                                </td>
                            
                        
                            
                        
                            
                        
                            
                        
                    
                        
                        
                            
                        
                            
                                <td data-label-name="nodename">
                                    <span class="label-value">k8s-node02</span>
                                </td>
                            
                        
                            
                        
                            
                        
                    
                    <td>1.01%</td>
                    <td>
                        正常
                        
                    </td>
                    <td>2024-12-31 20:18:38</td>
                </tr>
                
            </table>
            
            
        </div>
        
    </div>

<script>
    
    function getRandomColor() {
        const hue = Math.random() * 360;
        return {
            background: `hsla(${hue}, 70%, 95%, 1)`,
            border: `hsla(${hue}, 70%, 70%, 1)`
        };
    }

    
    document.addEventListener('DOMContentLoaded', function() {
        const cards = document.querySelectorAll('.card');
        const cardCount = cards.length;
        
        
        const container = document.querySelector('.summary-cards');
        if (cardCount <= 2) {
            container.style.gridTemplateColumns = `repeat(${cardCount}, 1fr)`;
        } else if (cardCount <= 4) {
            container.style.gridTemplateColumns = 'repeat(2, 1fr)';
        }

        
        cards.forEach(card => {
            const colors = getRandomColor();
            card.style.backgroundColor = colors.background;
            card.style.borderLeft = `4px solid ${colors.border}`;
        });
    });

    
    const ctx = document.getElementById('resourceChart').getContext('2d');
    const data = {"kubernetes集群监控状态":{"Type":"kubernetes集群监控状态","MetricsByName":{"K8s集群巡检":[],"PVC使用率":[],"Pod运行状态":[{"Instance":"","Name":"Pod运行状态","Description":"集群Pod运行状态统计","Value":1,"Threshold":1,"Unit":"","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.1078397+08:00","Labels":[{"Name":"namespace","Alias":"命名空间","Value":"kube-system"},{"Name":"pod","Alias":"Pod名称","Value":"calico-kube-controllers-7b9cd6b965-qqd4g"}]},{"Instance":"","Name":"Pod运行状态","Description":"集群Pod运行状态统计","Value":1,"Threshold":1,"Unit":"","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.1083454+08:00","Labels":[{"Name":"namespace","Alias":"命名空间","Value":"kube-system"},{"Name":"pod","Alias":"Pod名称","Value":"calico-node-8r8qn"}]},{"Instance":"","Name":"Pod运行状态","Description":"集群Pod运行状态统计","Value":1,"Threshold":1,"Unit":"","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.1083454+08:00","Labels":[{"Name":"namespace","Alias":"命名空间","Value":"kube-system"},{"Name":"pod","Alias":"Pod名称","Value":"calico-node-ntkx2"}]},{"Instance":"","Name":"Pod运行状态","Description":"集群Pod运行状态统计","Value":1,"Threshold":1,"Unit":"","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.1083454+08:00","Labels":[{"Name":"namespace","Alias":"命名空间","Value":"kube-system"},{"Name":"pod","Alias":"Pod名称","Value":"calico-node-xbnsd"}]},{"Instance":"","Name":"Pod运行状态","Description":"集群Pod运行状态统计","Value":1,"Threshold":1,"Unit":"","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.1083454+08:00","Labels":[{"Name":"namespace","Alias":"命名空间","Value":"kube-system"},{"Name":"pod","Alias":"Pod名称","Value":"coredns-64c49c6db6-gr8qq"}]},{"Instance":"","Name":"Pod运行状态","Description":"集群Pod运行状态统计","Value":1,"Threshold":1,"Unit":"","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.1088739+08:00","Labels":[{"Name":"namespace","Alias":"命名空间","Value":"kube-system"},{"Name":"pod","Alias":"Pod名称","Value":"local-path-provisioner-69df5cb69b-s4xc4"}]},{"Instance":"","Name":"Pod运行状态","Description":"集群Pod运行状态统计","Value":1,"Threshold":1,"Unit":"","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.1088739+08:00","Labels":[{"Name":"namespace","Alias":"命名空间","Value":"kube-system"},{"Name":"pod","Alias":"Pod名称","Value":"metrics-server-55fd5fdf7f-z9t6w"}]}],"自定义监控脚本执行情况":[],"节点就绪状态":[{"Instance":"","Name":"节点就绪状态","Description":"K8s节点就绪状态检查","Value":0,"Threshold":0,"Unit":"","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.1137744+08:00","Labels":[{"Name":"node","Alias":"节点","Value":"master-01"},{"Name":"condition","Alias":"状态类型","Value":"Ready"}]},{"Instance":"","Name":"节点就绪状态","Description":"K8s节点就绪状态检查","Value":0,"Threshold":0,"Unit":"","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.1137744+08:00","Labels":[{"Name":"node","Alias":"节点","Value":"master-01"},{"Name":"condition","Alias":"状态类型","Value":"Ready"}]},{"Instance":"","Name":"节点就绪状态","Description":"K8s节点就绪状态检查","Value":0,"Threshold":0,"Unit":"","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.1143892+08:00","Labels":[{"Name":"node","Alias":"节点","Value":"worker-01"},{"Name":"condition","Alias":"状态类型","Value":"Ready"}]},{"Instance":"","Name":"节点就绪状态","Description":"K8s节点就绪状态检查","Value":0,"Threshold":0,"Unit":"","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.1143892+08:00","Labels":[{"Name":"node","Alias":"节点","Value":"worker-01"},{"Name":"condition","Alias":"状态类型","Value":"Ready"}]},{"Instance":"","Name":"节点就绪状态","Description":"K8s节点就绪状态检查","Value":0,"Threshold":0,"Unit":"","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.1149872+08:00","Labels":[{"Name":"condition","Alias":"状态类型","Value":"Ready"},{"Name":"node","Alias":"节点","Value":"worker-02"}]},{"Instance":"","Name":"节点就绪状态","Description":"K8s节点就绪状态检查","Value":0,"Threshold":0,"Unit":"","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.1149872+08:00","Labels":[{"Name":"node","Alias":"节点","Value":"worker-02"},{"Name":"condition","Alias":"状态类型","Value":"Ready"}]}]},"Stats":{"MaxValue":1,"MinValue":0,"Average":0,"AlertCount":0,"CriticalCount":0,"WarningCount":0,"TotalCount":13}},"基础资源使用情况":{"Type":"基础资源使用情况","MetricsByName":{"CPU使用率":[{"Instance":"","Name":"CPU使用率","Description":"节点CPU使用率统计","Value":2.400000000682965,"Threshold":80,"Unit":"%","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.0589867+08:00","Labels":[{"Name":"instance","Alias":"节点","Value":"10.0.10.200:9100"}]},{"Instance":"","Name":"CPU使用率","Description":"节点CPU使用率统计","Value":1.3166666682809591,"Threshold":80,"Unit":"%","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.0589867+08:00","Labels":[{"Name":"instance","Alias":"节点","Value":"10.0.10.201:9100"}]},{"Instance":"","Name":"CPU使用率","Description":"节点CPU使用率统计","Value":2.225000001490102,"Threshold":80,"Unit":"%","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.0589867+08:00","Labels":[{"Name":"instance","Alias":"节点","Value":"10.0.10.202:9100"}]}],"内存使用率":[{"Instance":"","Name":"内存使用率","Description":"节点内存使用率统计","Value":26.834419804004938,"Threshold":85,"Unit":"%","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.0639968+08:00","Labels":[{"Name":"instance","Alias":"节点","Value":"10.0.10.200:9100"}]},{"Instance":"","Name":"内存使用率","Description":"节点内存使用率统计","Value":20.974609562794427,"Threshold":85,"Unit":"%","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.0658044+08:00","Labels":[{"Name":"instance","Alias":"节点","Value":"10.0.10.201:9100"}]},{"Instance":"","Name":"内存使用率","Description":"节点内存使用率统计","Value":70.8199937489718,"Threshold":85,"Unit":"%","Status":"warning","StatusText":"警告","Timestamp":"2024-12-31T20:18:38.0663931+08:00","Labels":[{"Name":"instance","Alias":"节点","Value":"10.0.10.202:9100"}]}],"固定机器内存使用率":[],"磁盘使用率":[{"Instance":"","Name":"磁盘使用率","Description":"节点磁盘使用率统计","Value":97.45369989458257,"Threshold":80,"Unit":"%","Status":"critical","StatusText":"严重","Timestamp":"2024-12-31T20:18:38.082772+08:00","Labels":[{"Name":"instance","Alias":"节点","Value":"10.0.10.200:9100"},{"Name":"mountpoint","Alias":"挂载点","Value":"/"},{"Name":"device","Alias":"磁盘","Value":"/dev/mapper/centos-root"},{"Name":"nodename","Alias":"节点名称","Value":"k8s-master"}]},{"Instance":"","Name":"磁盘使用率","Description":"节点磁盘使用率统计","Value":63.36126600545085,"Threshold":80,"Unit":"%","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.082772+08:00","Labels":[{"Name":"instance","Alias":"节点","Value":"10.0.10.201:9100"},{"Name":"mountpoint","Alias":"挂载点","Value":"/"},{"Name":"device","Alias":"磁盘","Value":"/dev/mapper/centos-root"},{"Name":"nodename","Alias":"节点名称","Value":"k8s-node01"}]},{"Instance":"","Name":"磁盘使用率","Description":"节点磁盘使用率统计","Value":63.36126600545085,"Threshold":80,"Unit":"%","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.0832777+08:00","Labels":[{"Name":"nodename","Alias":"节点名称","Value":"k8s-node01"},{"Name":"instance","Alias":"节点","Value":"10.0.10.201:9100"},{"Name":"mountpoint","Alias":"挂载点","Value":"/data/kubernetes/kubelet/pods/c1481842-e95a-4cea-b8bb-d0411cd7f78f/volume-subpaths/nginx-conf/nginx/2"},{"Name":"device","Alias":"磁盘","Value":"/dev/mapper/centos-root"}]},{"Instance":"","Name":"磁盘使用率","Description":"节点磁盘使用率统计","Value":82.25250687784434,"Threshold":80,"Unit":"%","Status":"critical","StatusText":"严重","Timestamp":"2024-12-31T20:18:38.0832777+08:00","Labels":[{"Name":"instance","Alias":"节点","Value":"10.0.10.202:9100"},{"Name":"mountpoint","Alias":"挂载点","Value":"/"},{"Name":"device","Alias":"磁盘","Value":"/dev/mapper/centos-root"},{"Name":"nodename","Alias":"节点名称","Value":"k8s-node02"}]},{"Instance":"","Name":"磁盘使用率","Description":"节点磁盘使用率统计","Value":82.25250687784434,"Threshold":80,"Unit":"%","Status":"critical","StatusText":"严重","Timestamp":"2024-12-31T20:18:38.0838322+08:00","Labels":[{"Name":"instance","Alias":"节点","Value":"10.0.10.202:9100"},{"Name":"mountpoint","Alias":"挂载点","Value":"/data/kubernetes/kubelet/pods/5b09e845-3aed-40d3-8807-97f62156e77e/volume-subpaths/config-volume/dolphinscheduler-healthcheck-container/0"},{"Name":"device","Alias":"磁盘","Value":"/dev/mapper/centos-root"},{"Name":"nodename","Alias":"节点名称","Value":"k8s-node02"}]},{"Instance":"","Name":"磁盘使用率","Description":"节点磁盘使用率统计","Value":82.25250687784434,"Threshold":80,"Unit":"%","Status":"critical","StatusText":"严重","Timestamp":"2024-12-31T20:18:38.084424+08:00","Labels":[{"Name":"mountpoint","Alias":"挂载点","Value":"/data/kubernetes/kubelet/pods/df422ae5-e8b4-4d6f-be08-81dcc9fd517e/volume-subpaths/config/grafana/0"},{"Name":"device","Alias":"磁盘","Value":"/dev/mapper/centos-root"},{"Name":"nodename","Alias":"节点名称","Value":"k8s-node02"},{"Name":"instance","Alias":"节点","Value":"10.0.10.202:9100"}]},{"Instance":"","Name":"磁盘使用率","Description":"节点磁盘使用率统计","Value":97.45369989458257,"Threshold":80,"Unit":"%","Status":"critical","StatusText":"严重","Timestamp":"2024-12-31T20:18:38.0850804+08:00","Labels":[{"Name":"instance","Alias":"节点","Value":"10.0.10.200:9100"},{"Name":"mountpoint","Alias":"挂载点","Value":"/"},{"Name":"device","Alias":"磁盘","Value":"rootfs"},{"Name":"nodename","Alias":"节点名称","Value":"k8s-master"}]},{"Instance":"","Name":"磁盘使用率","Description":"节点磁盘使用率统计","Value":63.36126600545085,"Threshold":80,"Unit":"%","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.0850804+08:00","Labels":[{"Name":"instance","Alias":"节点","Value":"10.0.10.201:9100"},{"Name":"mountpoint","Alias":"挂载点","Value":"/"},{"Name":"device","Alias":"磁盘","Value":"rootfs"},{"Name":"nodename","Alias":"节点名称","Value":"k8s-node01"}]},{"Instance":"","Name":"磁盘使用率","Description":"节点磁盘使用率统计","Value":82.25250687784434,"Threshold":80,"Unit":"%","Status":"critical","StatusText":"严重","Timestamp":"2024-12-31T20:18:38.0855865+08:00","Labels":[{"Name":"instance","Alias":"节点","Value":"10.0.10.202:9100"},{"Name":"mountpoint","Alias":"挂载点","Value":"/"},{"Name":"device","Alias":"磁盘","Value":"rootfs"},{"Name":"nodename","Alias":"节点名称","Value":"k8s-node02"}]},{"Instance":"","Name":"磁盘使用率","Description":"节点磁盘使用率统计","Value":1.0000751930393363,"Threshold":80,"Unit":"%","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.0855865+08:00","Labels":[{"Name":"nodename","Alias":"节点名称","Value":"k8s-master"},{"Name":"instance","Alias":"节点","Value":"10.0.10.200:9100"},{"Name":"mountpoint","Alias":"挂载点","Value":"/data/kubernetes/kubelet/pods/03916a43-d46b-48b6-9fab-ce07d0472e1a/volumes/kubernetes.io~projected/kube-api-access-zgbg7"},{"Name":"device","Alias":"磁盘","Value":"tmpfs"}]},{"Instance":"","Name":"磁盘使用率","Description":"节点磁盘使用率统计","Value":1.0000751930393363,"Threshold":80,"Unit":"%","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.0861314+08:00","Labels":[{"Name":"mountpoint","Alias":"挂载点","Value":"/data/kubernetes/kubelet/pods/03916a43-d46b-48b6-9fab-ce07d0472e1a/volumes/kubernetes.io~secret/etcd-certs"},{"Name":"device","Alias":"磁盘","Value":"tmpfs"},{"Name":"nodename","Alias":"节点名称","Value":"k8s-master"},{"Name":"instance","Alias":"节点","Value":"10.0.10.200:9100"}]},{"Instance":"","Name":"磁盘使用率","Description":"节点磁盘使用率统计","Value":1.0000751930393363,"Threshold":80,"Unit":"%","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.0861314+08:00","Labels":[{"Name":"instance","Alias":"节点","Value":"10.0.10.201:9100"},{"Name":"mountpoint","Alias":"挂载点","Value":"/data/kubernetes/kubelet/pods/1660ba23-5170-4a36-bd47-ad3c174a0a63/volumes/kubernetes.io~projected/kube-api-access-rxsmw"},{"Name":"device","Alias":"磁盘","Value":"tmpfs"},{"Name":"nodename","Alias":"节点名称","Value":"k8s-node01"}]},{"Instance":"","Name":"磁盘使用率","Description":"节点磁盘使用率统计","Value":1.0000751930393363,"Threshold":80,"Unit":"%","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.0867404+08:00","Labels":[{"Name":"instance","Alias":"节点","Value":"10.0.10.201:9100"},{"Name":"mountpoint","Alias":"挂载点","Value":"/data/kubernetes/kubelet/pods/1660ba23-5170-4a36-bd47-ad3c174a0a63/volumes/kubernetes.io~secret/etcd-certs"},{"Name":"device","Alias":"磁盘","Value":"tmpfs"},{"Name":"nodename","Alias":"节点名称","Value":"k8s-node01"}]},{"Instance":"","Name":"磁盘使用率","Description":"节点磁盘使用率统计","Value":1.01171875,"Threshold":80,"Unit":"%","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.0872455+08:00","Labels":[{"Name":"instance","Alias":"节点","Value":"10.0.10.201:9100"},{"Name":"mountpoint","Alias":"挂载点","Value":"/data/kubernetes/kubelet/pods/3b52e533-4eaf-49ba-adad-5756c55658b6/volumes/kubernetes.io~projected/kube-api-access-dst8r"},{"Name":"device","Alias":"磁盘","Value":"tmpfs"},{"Name":"nodename","Alias":"节点名称","Value":"k8s-node01"}]},{"Instance":"","Name":"磁盘使用率","Description":"节点磁盘使用率统计","Value":1.00390625,"Threshold":80,"Unit":"%","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.0878461+08:00","Labels":[{"Name":"instance","Alias":"节点","Value":"10.0.10.201:9100"},{"Name":"mountpoint","Alias":"挂载点","Value":"/data/kubernetes/kubelet/pods/6f021831-4a15-42eb-8d80-6ab401b79236/volumes/kubernetes.io~projected/kube-api-access-6vc5x"},{"Name":"device","Alias":"磁盘","Value":"tmpfs"},{"Name":"nodename","Alias":"节点名称","Value":"k8s-node01"}]},{"Instance":"","Name":"磁盘使用率","Description":"节点磁盘使用率统计","Value":1.0000751930393363,"Threshold":80,"Unit":"%","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.0883523+08:00","Labels":[{"Name":"instance","Alias":"节点","Value":"10.0.10.201:9100"},{"Name":"mountpoint","Alias":"挂载点","Value":"/data/kubernetes/kubelet/pods/86c93c23-8c7c-44fa-8418-95e13211d20f/volumes/kubernetes.io~projected/kube-api-access-pk86n"},{"Name":"device","Alias":"磁盘","Value":"tmpfs"},{"Name":"nodename","Alias":"节点名称","Value":"k8s-node01"}]},{"Instance":"","Name":"磁盘使用率","Description":"节点磁盘使用率统计","Value":1.0000250643464454,"Threshold":80,"Unit":"%","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.089034+08:00","Labels":[{"Name":"instance","Alias":"节点","Value":"10.0.10.201:9100"},{"Name":"mountpoint","Alias":"挂载点","Value":"/data/kubernetes/kubelet/pods/86c93c23-8c7c-44fa-8418-95e13211d20f/volumes/kubernetes.io~secret/config"},{"Name":"device","Alias":"磁盘","Value":"tmpfs"},{"Name":"nodename","Alias":"节点名称","Value":"k8s-node01"}]},{"Instance":"","Name":"磁盘使用率","Description":"节点磁盘使用率统计","Value":1.0000751930393363,"Threshold":80,"Unit":"%","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.089034+08:00","Labels":[{"Name":"mountpoint","Alias":"挂载点","Value":"/data/kubernetes/kubelet/pods/c1481842-e95a-4cea-b8bb-d0411cd7f78f/volumes/kubernetes.io~projected/kube-api-access-6z5fj"},{"Name":"device","Alias":"磁盘","Value":"tmpfs"},{"Name":"nodename","Alias":"节点名称","Value":"k8s-node01"},{"Name":"instance","Alias":"节点","Value":"10.0.10.201:9100"}]},{"Instance":"","Name":"磁盘使用率","Description":"节点磁盘使用率统计","Value":1.000050128692891,"Threshold":80,"Unit":"%","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.0896071+08:00","Labels":[{"Name":"instance","Alias":"节点","Value":"10.0.10.201:9100"},{"Name":"mountpoint","Alias":"挂载点","Value":"/data/kubernetes/kubelet/pods/c1481842-e95a-4cea-b8bb-d0411cd7f78f/volumes/kubernetes.io~secret/minio-tls"},{"Name":"device","Alias":"磁盘","Value":"tmpfs"},{"Name":"nodename","Alias":"节点名称","Value":"k8s-node01"}]},{"Instance":"","Name":"磁盘使用率","Description":"节点磁盘使用率统计","Value":1.0000751930393363,"Threshold":80,"Unit":"%","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.0904551+08:00","Labels":[{"Name":"mountpoint","Alias":"挂载点","Value":"/data/kubernetes/kubelet/pods/caecb7c5-8313-44ef-a975-7511475a9b8d/volumes/kubernetes.io~projected/kube-api-access-fz8fh"},{"Name":"device","Alias":"磁盘","Value":"tmpfs"},{"Name":"nodename","Alias":"节点名称","Value":"k8s-node01"},{"Name":"instance","Alias":"节点","Value":"10.0.10.201:9100"}]},{"Instance":"","Name":"磁盘使用率","Description":"节点磁盘使用率统计","Value":1.0000250643464454,"Threshold":80,"Unit":"%","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.0909628+08:00","Labels":[{"Name":"instance","Alias":"节点","Value":"10.0.10.201:9100"},{"Name":"mountpoint","Alias":"挂载点","Value":"/data/kubernetes/kubelet/pods/caecb7c5-8313-44ef-a975-7511475a9b8d/volumes/kubernetes.io~secret/config"},{"Name":"device","Alias":"磁盘","Value":"tmpfs"},{"Name":"nodename","Alias":"节点名称","Value":"k8s-node01"}]},{"Instance":"","Name":"磁盘使用率","Description":"节点磁盘使用率统计","Value":1.0000751930393363,"Threshold":80,"Unit":"%","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.0910416+08:00","Labels":[{"Name":"mountpoint","Alias":"挂载点","Value":"/data/kubernetes/kubelet/pods/d984a2aa-7cc7-4ebe-aa2e-90951a1cf6ce/volumes/kubernetes.io~projected/kube-api-access-xbznk"},{"Name":"device","Alias":"磁盘","Value":"tmpfs"},{"Name":"nodename","Alias":"节点名称","Value":"k8s-node01"},{"Name":"instance","Alias":"节点","Value":"10.0.10.201:9100"}]},{"Instance":"","Name":"磁盘使用率","Description":"节点磁盘使用率统计","Value":1.01171875,"Threshold":80,"Unit":"%","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.0915473+08:00","Labels":[{"Name":"instance","Alias":"节点","Value":"10.0.10.202:9100"},{"Name":"mountpoint","Alias":"挂载点","Value":"/data/kubernetes/kubelet/pods/5b09e845-3aed-40d3-8807-97f62156e77e/volumes/kubernetes.io~projected/kube-api-access-9sttk"},{"Name":"device","Alias":"磁盘","Value":"tmpfs"},{"Name":"nodename","Alias":"节点名称","Value":"k8s-node02"}]},{"Instance":"","Name":"磁盘使用率","Description":"节点磁盘使用率统计","Value":1.0000751930393363,"Threshold":80,"Unit":"%","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.0920905+08:00","Labels":[{"Name":"mountpoint","Alias":"挂载点","Value":"/data/kubernetes/kubelet/pods/81b5195a-3123-40e5-8bab-c04499359119/volumes/kubernetes.io~projected/kube-api-access-kvzvx"},{"Name":"device","Alias":"磁盘","Value":"tmpfs"},{"Name":"nodename","Alias":"节点名称","Value":"k8s-node02"},{"Name":"instance","Alias":"节点","Value":"10.0.10.202:9100"}]},{"Instance":"","Name":"磁盘使用率","Description":"节点磁盘使用率统计","Value":1.0000751930393363,"Threshold":80,"Unit":"%","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.0926188+08:00","Labels":[{"Name":"nodename","Alias":"节点名称","Value":"k8s-node02"},{"Name":"instance","Alias":"节点","Value":"10.0.10.202:9100"},{"Name":"mountpoint","Alias":"挂载点","Value":"/data/kubernetes/kubelet/pods/9716e25d-67da-4465-8fcc-2ff9f04daae2/volumes/kubernetes.io~projected/kube-api-access-xv5bb"},{"Name":"device","Alias":"磁盘","Value":"tmpfs"}]},{"Instance":"","Name":"磁盘使用率","Description":"节点磁盘使用率统计","Value":1.0000751930393363,"Threshold":80,"Unit":"%","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.0926188+08:00","Labels":[{"Name":"nodename","Alias":"节点名称","Value":"k8s-node02"},{"Name":"instance","Alias":"节点","Value":"10.0.10.202:9100"},{"Name":"mountpoint","Alias":"挂载点","Value":"/data/kubernetes/kubelet/pods/9716e25d-67da-4465-8fcc-2ff9f04daae2/volumes/kubernetes.io~secret/etcd-certs"},{"Name":"device","Alias":"磁盘","Value":"tmpfs"}]},{"Instance":"","Name":"磁盘使用率","Description":"节点磁盘使用率统计","Value":1.00152587890625,"Threshold":80,"Unit":"%","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.0931725+08:00","Labels":[{"Name":"instance","Alias":"节点","Value":"10.0.10.202:9100"},{"Name":"mountpoint","Alias":"挂载点","Value":"/data/kubernetes/kubelet/pods/a5a3692c-23bc-42fe-9107-41e12f1458c1/volumes/kubernetes.io~projected/kube-api-access-fg85g"},{"Name":"device","Alias":"磁盘","Value":"tmpfs"},{"Name":"nodename","Alias":"节点名称","Value":"k8s-node02"}]},{"Instance":"","Name":"磁盘使用率","Description":"节点磁盘使用率统计","Value":1.0000751930393363,"Threshold":80,"Unit":"%","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.0936991+08:00","Labels":[{"Name":"instance","Alias":"节点","Value":"10.0.10.202:9100"},{"Name":"mountpoint","Alias":"挂载点","Value":"/data/kubernetes/kubelet/pods/bfad8bcc-49fd-40b1-ac8e-aa83ab20bb7a/volumes/kubernetes.io~projected/kube-api-access-kt8j2"},{"Name":"device","Alias":"磁盘","Value":"tmpfs"},{"Name":"nodename","Alias":"节点名称","Value":"k8s-node02"}]},{"Instance":"","Name":"磁盘使用率","Description":"节点磁盘使用率统计","Value":1.0000250643464454,"Threshold":80,"Unit":"%","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.0954429+08:00","Labels":[{"Name":"mountpoint","Alias":"挂载点","Value":"/data/kubernetes/kubelet/pods/bfad8bcc-49fd-40b1-ac8e-aa83ab20bb7a/volumes/kubernetes.io~secret/config"},{"Name":"device","Alias":"磁盘","Value":"tmpfs"},{"Name":"nodename","Alias":"节点名称","Value":"k8s-node02"},{"Name":"instance","Alias":"节点","Value":"10.0.10.202:9100"}]},{"Instance":"","Name":"磁盘使用率","Description":"节点磁盘使用率统计","Value":1.0000751930393363,"Threshold":80,"Unit":"%","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.0960282+08:00","Labels":[{"Name":"instance","Alias":"节点","Value":"10.0.10.202:9100"},{"Name":"mountpoint","Alias":"挂载点","Value":"/data/kubernetes/kubelet/pods/df422ae5-e8b4-4d6f-be08-81dcc9fd517e/volumes/kubernetes.io~projected/kube-api-access-9tjpn"},{"Name":"device","Alias":"磁盘","Value":"tmpfs"},{"Name":"nodename","Alias":"节点名称","Value":"k8s-node02"}]},{"Instance":"","Name":"磁盘使用率","Description":"节点磁盘使用率统计","Value":1.0000751930393363,"Threshold":80,"Unit":"%","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.0978546+08:00","Labels":[{"Name":"nodename","Alias":"节点名称","Value":"k8s-node02"},{"Name":"instance","Alias":"节点","Value":"10.0.10.202:9100"},{"Name":"mountpoint","Alias":"挂载点","Value":"/data/kubernetes/kubelet/pods/ec2c103c-dcab-4a14-8ede-d7adaca798ea/volumes/kubernetes.io~projected/kube-api-access-p6vc2"},{"Name":"device","Alias":"磁盘","Value":"tmpfs"}]},{"Instance":"","Name":"磁盘使用率","Description":"节点磁盘使用率统计","Value":1.0000751930393363,"Threshold":80,"Unit":"%","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.0989+08:00","Labels":[{"Name":"device","Alias":"磁盘","Value":"tmpfs"},{"Name":"nodename","Alias":"节点名称","Value":"k8s-node02"},{"Name":"instance","Alias":"节点","Value":"10.0.10.202:9100"},{"Name":"mountpoint","Alias":"挂载点","Value":"/data/kubernetes/kubelet/pods/ec2c103c-dcab-4a14-8ede-d7adaca798ea/volumes/kubernetes.io~secret/etcd-certs"}]},{"Instance":"","Name":"磁盘使用率","Description":"节点磁盘使用率统计","Value":1.01171875,"Threshold":80,"Unit":"%","Status":"normal","StatusText":"正常","Timestamp":"2024-12-31T20:18:38.099543+08:00","Labels":[{"Name":"device","Alias":"磁盘","Value":"tmpfs"},{"Name":"nodename","Alias":"节点名称","Value":"k8s-node02"},{"Name":"instance","Alias":"节点","Value":"10.0.10.202:9100"},{"Name":"mountpoint","Alias":"挂载点","Value":"/data/kubernetes/kubelet/pods/f98c6320-f73d-4829-a4f6-0eaeaadb5f9b/volumes/kubernetes.io~projected/kube-api-access-8xlh2"}]}]},"Stats":{"MaxValue":97.45369989458257,"MinValue":1.0000250643464454,"Average":0,"AlertCount":7,"CriticalCount":6,"WarningCount":1,"TotalCount":39}}}
    const labels = []; 
    const datasets = [];

    
    function getMetricValues(metricName, filterFn = null) {
        const values = [];
        const labels = new Set(); 
        
        for (const [type, group] of Object.entries(data)) {
            if (group.MetricsByName && group.MetricsByName[metricName]) {
                for (const metric of group.MetricsByName[metricName]) {
                    if (filterFn && !filterFn(metric)) continue;
                    
                    
                    const instanceLabel = metric.Labels.find(label => 
                        label.Name === "instance" || label.Name === "node"
                    );
                    if (instanceLabel) {
                        labels.add(instanceLabel.Value.split(':')[0]);
                        values.push(parseFloat(metric.Value));
                    }
                }
            }
        }
        return { values, labels: Array.from(labels) };
    }

    
    const cpuData = getMetricValues('CPU使用率');
    const memoryData = getMetricValues('内存使用率');
    const diskData = getMetricValues('磁盘使用率', (metric) => {
        return metric.Labels.some(label => 
            label.Value === "rootfs" || label.Value === "/"
        );
    });

    
    const chartLabels = cpuData.labels;
    
    function getColorByValue(value) {
        if (value >= 90) return '#dc3545';  
        if (value >= 80) return '#ffc107';  
        return '#4CAF50';                   
    }
    
    const chartDatasets = [
        {
            label: 'CPU使用率',
            data: cpuData.values,
            backgroundColor: cpuData.values.map(value => getColorByValue(value)),
        },
        {
            label: '内存使用率',
            data: memoryData.values,
            backgroundColor: memoryData.values.map(value => getColorByValue(value)),
        },
        {
            label: '磁盘使用率',
            data: diskData.values,
            backgroundColor: diskData.values.map(value => getColorByValue(value)),
        }
    ];

    new Chart(ctx, {
        type: 'bar',
        data: {
            labels: chartLabels,
            datasets: chartDatasets, 
        },
        options: {
            responsive: true,
            maintainAspectRatio: false,
            plugins: {
                legend: {
                    position: 'top',
                },
                title: {
                    display: true,
                    text: '资源使用情况'
                }
            },
            scales: {
                y: {
                    beginAtZero: true,
                    max: 100,
                    ticks: {
                        callback: function(value) {
                            return value + '%';
                        }
                    }
                }
            }
        }
    });
</script>
</body>
</html>